From 892f3730aebddd11a75ee0f95c6058bfa501ee14 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Fri, 25 Nov 2005 17:07:19 +0000 Subject: [PATCH] Match rename of parameters to match the corresponding hotplug events. This took place some time ago, so presumably not many people are using this scripts! Signed-off-by: Ewan Mellor --- tools/examples/block-enbd | 4 ++-- tools/examples/block-nbd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/examples/block-enbd b/tools/examples/block-enbd index c58adb595d..75c6f257aa 100755 --- a/tools/examples/block-enbd +++ b/tools/examples/block-enbd @@ -11,7 +11,7 @@ dir=$(dirname "$0") . "$dir/block-common.sh" case "$command" in - bind) + add) for dev in /dev/nd*; do if nbd-client $2:$3 $dev; then write_dev $dev @@ -20,7 +20,7 @@ case "$command" in done exit 1 ;; - unbind) + remove) nbd-client -d $2 exit 0 ;; diff --git a/tools/examples/block-nbd b/tools/examples/block-nbd index 142a403c0f..8c5cb17b79 100644 --- a/tools/examples/block-nbd +++ b/tools/examples/block-nbd @@ -11,7 +11,7 @@ dir=$(dirname "$0") . "$dir/block-common.sh" case "$command" in - bind) + add) for dev in /dev/nbd*; do if nbd-client $2 $3 $dev; then write_dev $dev @@ -20,7 +20,7 @@ case "$command" in done exit 1 ;; - unbind) + remove) nbd-client -d $2 exit 0 ;; -- 2.30.2